package moltencore.game.loader;

import spark.graphics.SpriteRenderable;
import spark.math.Vector3;
import spark.math.Vector2;

public class LevelSprite {
	private SpriteRenderable renderable;
	private String spriteMap;
	private String theme;
	private String id;

	public LevelSprite(LevelSprite levelSprite) {
		renderable = new SpriteRenderable();
		renderable.setPosition(new Vector3(levelSprite.getRenderable().getPosition()));
		renderable.setDimensions(new Vector2(levelSprite.getRenderable().getDimensions()));
		renderable.setSprite(levelSprite.getRenderable().getSprite());
		spriteMap = levelSprite.spriteMap;
		theme = levelSprite.getTheme();
		id = levelSprite.getId();
	}

	public LevelSprite(SpriteRenderable renderable, String spriteMap, String theme, String id) {
		this.renderable = renderable;
		this.spriteMap = spriteMap;
		this.theme = theme;
		this.id = id;
	}

	public SpriteRenderable getRenderable() {
		return renderable;
	}

	public void setRenderable(SpriteRenderable renderable) {
		this.renderable = renderable;
	}

	public String getSpriteMap() {
		return spriteMap;
	}

	public void setSpriteMap(String spriteMap) {
		this.spriteMap = spriteMap;
	}

	public String getTheme() {
		return theme;
	}

	public void setTheme(String theme) {
		this.theme = theme;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
}
